package com.example.spring.ai.tools;

import com.example.spring.ai.record.WeatherRequest;
import com.example.spring.ai.record.WeatherResponse;

import java.util.function.Function;

public class WeatherService implements Function<WeatherRequest, WeatherResponse> {
    @Override
    public WeatherResponse apply(WeatherRequest weatherRequest) {
        return new WeatherResponse(30.0, Unit.C);
    }
}

